how to find the resultant vector